/*
 * 练习4：以练习3为基础，添加一个重载构造器，令其接受一个字符串参数，
 *      并在构造器中把你自己的的消息和接受的参数一起打印
 */

package chapter5_InitializationAndCleanUp;
import publicLibs.p;

public class E4_SecondConstructor {

	public E4_SecondConstructor(){
		p.p("Hello , I'm a constructor !");
	}
	public E4_SecondConstructor(String s){
		p.p("Hello,I'm the second constructor !");
		p.pNoln("I received a message"); p.p(s);
	}
	
	public static void main(String[] args) {
		E4_SecondConstructor e3 = new E4_SecondConstructor();
		E4_SecondConstructor e4 = new E4_SecondConstructor("Second");
	}

}
